export default {
  getPrintOut (id) {//打印页
    return axios.get('/api/print-info/' + id)
  },
  setlog (id) {//打印页打印log
    return axios.get('/api/print-log/' + id)
  },
  getEnrollSituation(){ //获取学校招生情况
    return axios.get('/api/situation-info')
  },
  getExportInfo (school_id) {//导出excl表
    return axios.get('/api/export/school_id=' + school_id)
  },
  postImportInfo(file){//导入excl表
    return axios.post('/api/import',file, {headers: {'Content-Type': 'multipart/form-data'}})
  },
  postSchoolUpperLimit(id,upperLimit){//重设幼儿园预计招生数
    return axios.post('/api/update-upper-limit/' + id, upperLimit)
  },
  getEnrollAll(id){ //录取所有学生
    return axios.get('/api/all-enroll/' + id)
  },
  getStudentInfo(id){ //录入页面
    return axios.get('/api/sign-up/' + id)
  },
  getPolice(id){ //录入页面根据幼儿园code获取派出所
    return axios.get('/api/police/' + id)
  },
  postStudent(model){
    return axios.post('/api/sign-up/post', model)
  },
  putStudent(uuid,model){
    return axios.put('/api/sign-up/' + uuid, model)
  },
  getUserInfo(id){
    return axios.get('/api/user/' + id)
  },
  postUserInfo(model){
    return axios.post('/api/user', model)
  },
  putUserInfo(uuid,model){
    return axios.put('/api/user/' + uuid, model)
  },
  DeletedUserInfo(uuid){
    return axios.delete('/api/user/' + uuid)
  }
}
